{% extends "base.html" %}

{% block title %} Weblog | Entries tagged "{{ tag }}"{% endblock %}

{% block content %}
{% load tagging_tags %}

<h1>Entries with tag "{{ tag }}"</h1>

{% for entry in entry_list %}
{% tags_for_object entry as tags %}
  <h2><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h2>
  <p>{{ entry.pub_date|date:"F j, Y" }}</p>
  <p>
  {% if tags %}
    <b>Tags:</b>
    {% for tag in tags %}
      <a href="{% url diario-tagged-entry-list tag %}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
    {% endfor %}
  {% endif %}
</p>
  {{ entry.body|safe }}
{% endfor %}

{% endblock %}
